package br.com.citta.business.entities;

import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "receita_diaria")
public class ReceitaDiaria implements  Serializable{

    @EmbeddedId
    private ReceitaDiariaId id;
    
    @Column(name = "arrec")
    private Double arrec;

    @Column(name = "prev_adic")
    private Double prevAdic;
    
    public ReceitaDiaria() {
    }

    public Double getArrec() {
        return arrec;
    }

    public void setArrec(Double arrec) {
        this.arrec = arrec;
    }

    public ReceitaDiariaId getId() {
        return id;
    }

    public void setId(ReceitaDiariaId id) {
        this.id = id;
    }

    public Double getPrevAdic() {
        return prevAdic;
    }

    public void setPrevAdic(Double prevAdic) {
        this.prevAdic = prevAdic;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ReceitaDiaria other = (ReceitaDiaria) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 67 * hash + Objects.hashCode(this.id);
        return hash;
    }

}
